package com.example.gyrodemo;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BatteryLeverlReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();

        if(Intent.ACTION_BATTERY_LOW.equals(action)) {
            MyToast.showToast(context,"Low Power... You can take a break~");
        }
    }
}
